<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      th:replace="fragments/layout(title='能力评估',jsPaths='/static/js/assessment/result.js,/static/plugins/jquery-migrate-1.2.1.min.js,/static/plugins/jquery.jqprint-0.3.js')">
<div class="right" th:fragment="right">
    <!--面包屑-->
    <div class="breadcrumb layui-bg-gray">
            <span class="layui-breadcrumb" lay-separator=">">
                <a th:href="@{/}">首页</a>
                   <a href="">能力评估</a>
                <a href="javascript:void(0)">评估记录-详情</a>
            </span>
    </div>

    <!--主体内容区-->
    <div class="form-content">
        <div class="layui-row"  id="print">
            <div class="layui-col-md6 layui-col-md-offset1">
                <input class="layui-hide" th:value="${records.id}" id="pgId"></input>
                <table class="layui-table">
                    <colgroup>
                        <col width="61px">
                        <col width="89px">
                        <col width="105px">
                        <col width="103px">
                        <col width="83px">
                        <col width="85px">
                        <col width="110px">
                        <col width="83px">
                        <col width="83px">
                    </colgroup>
                    <tbody>
                    <caption align="center" style="font-size: 25px;"><label th:text="${records.orgName}"></label>院民生活自理能力评估表
                    </caption>
                    <tr lay-skin="">
                        <td rowspan="6">基本情况</td>
                        <td>姓名</td>
                        <td th:text="${elderly.name}"></td>
                        <td>性别</td>
                        <td th:text="${elderly.sex}"></td>
                        <td>年龄</td>
                        <td th:text="${elderly.age}"></td>
                        <td>文化程度</td>
                        <td   th:if="${elderly.education} eq '1'" th:text="文盲"></td>
                        <td   th:if="${elderly.education} eq '2'" th:text="小学"></td>
                        <td   th:if="${elderly.education} eq '3'" th:text="大专"></td>
                        <td   th:if="${elderly.education} eq '4'" th:text="高中、技校、中专"></td>
                        <td   th:if="${elderly.education} eq '5'" th:text="大学专科及以上"></td>
                        <td   th:if="${elderly.education} eq '6'" th:text="不详"></td>
                        <td   th:if="${elderly.education} eq ''"></td>
                    </tr>
                    <tr>
                        <td>出生年月</td>
                        <td th:text="${#dates.format(elderly.birthday,'yyyy-MM-dd')}"></td>
                        <td>婚姻状况</td>
                        <td th:if="${elderly.wedding} eq '1'" th:text="未婚"></td>
                        <td th:if="${elderly.wedding} eq '2'" th:text="已婚"></td>
                        <td th:if="${elderly.wedding} eq '3'" th:text="丧偶"></td>
                        <td th:if="${elderly.wedding} eq '4'" th:text="离婚"></td>
                        <td th:if="${elderly.wedding} eq '5'" th:text="未说明的婚姻状况"></td>
                        <td th:if="${elderly.wedding} eq ''"></td>
                        <td>入住时间</td>
                        <td th:text="${#dates.format(elderly.enterDate,'yyyy-MM-dd')}"></td>
                        <td>经费来源</td>
                        <td th:if="${elderly.fmoney} eq '1'" th:text="退休金、养老金"></td>
                        <td th:if="${elderly.fmoney} eq '2'" th:text="子女补贴"></td>
                        <td th:if="${elderly.fmoney} eq '3'" th:text="亲友资助"></td>
                        <td th:if="${elderly.fmoney} eq '4'" th:text="其它补贴"></td>
                        <td th:if="${elderly.fmoney} eq ''"></td>
                    </tr>
                    <tr>
                        <td>身份证号</td>
                        <td colspan="3" th:text="${elderly.idNo}"></td>
                        <td>家庭住址</td>
                        <td colspan="3"
                            th:text="${elderly.provinceName+' '+elderly.cityName+' '+elderly.areaName+' '+elderly.townName+' '+elderly.villageName+' '+elderly.address}"></td>
                    </tr>
                    <tr th:if="${#lists.isEmpty(folks)}">
                        <td>亲属姓名</td>
                        <td></td>
                        <td>与亲属关系</td>
                        <td colspan="2"  text=""></td>
                        <td>亲属联系电话</td>
                        <td colspan="2" text=""></td>
                    </tr>
                    <tr th:if="!${#lists.isEmpty(folks)}">
                        <td>亲属姓名</td>
                        <td  th:text="${folks[0].name}"></td>
                        <td>与亲属关系</td>
                        <td colspan="2" th:if="${folks[0].relation != null}" th:text="${folks[0].relation}"></td>
                        <td colspan="2" th:if="${folks[0].relation ==null}" text=""></td>
                        <td>亲属联系电话</td>
                        <td  colspan="2" th:text="${folks[0].phone}"></td>
                    </tr>
                    <tr>
                        <td rowspan="2">特困供养证号</td>
                        <td rowspan="2" th:text="${elderly.fiveNo}"></td>
                        <td rowspan="2">供养形式</td>
                        <td rowspan="2">集中供养</td>
                        <td rowspan="2">残疾等级</td>
                        <td rowspan="2" th:if="${elderly.deformity} eq '1'" th:text="一级残疾"></td>
                        <td rowspan="2" th:if="${elderly.deformity} eq '2'" th:text="二级残疾"></td>
                        <td rowspan="2" th:if="${elderly.deformity} ==null" th:text="无残疾"></td>
                        <td rowspan="2">
                            <p th:if="${elderly.limb} eq '1' or ${elderly.limb} eq '2'  " th:text="肢体"></p>
                            <p th:if="${elderly.spirit} !=  null" th:text="精神"></p>
                        </td>
                        <td rowspan="2">
                            <p th:if="${elderly.wit} != null" th:text="智力"></p>
                            <p th:if="${elderly.vision} !=  null" th:text="视力"></p>
                        </td>
                    </tr>
                    <tr>

                    </tr>
                    <tr>
                        <td colspan="2" rowspan="2">评估类别</td>
                        <td colspan="7"><span th:if="${records.cause==1}" style=" margin-left: 265px;">首次评估</span><span
                                th:if="${records.cause!=1}" style=" margin-left: 265px;">复核评估</span></td>
                    </tr>
                    <tr>
                        <td colspan="7">评估结果：<span th:if="${records.rs==1}">具备生活自理能力</span> <span
                                th:if="${records.rs==2}">部分丧失生活自理能力</span><span
                                th:if="${records.rs==3}"> 完全丧失生活自理能力</span></td>
                    </tr>
                    <tr>
                        <td colspan="2" rowspan="7">评估情况</td>
                        <td colspan="5">评估事项</td>
                        <td colspan="2">完成情况</td>
                    </tr>
                    <tr>
                        <td>自主吃饭</td>
                        <td colspan="4">使用餐具（包括筷子、勺子、叉子等）将食物送入口中、对碗筷（碟）的把持、完成咀嚼、吞咽等活动</td>
                        <td colspan="2"><span th:if="${records.selfEat==0}">可自主完成</span> <span
                                th:if="${records.selfEat==1}"> 不能自主完成 </span></td>
                    </tr>
                    <tr>
                        <td>自主穿衣</td>
                        <td colspan="4">穿脱衣服、系扣子、拉拉链、穿脱鞋袜、系鞋带等活动</td>
                        <td colspan="2"><span th:if="${records.selfGarb==0}">可自主完成</span> <span
                                th:if="${records.selfGarb==1}"> 不能自主完成 </span></td>
                    </tr>
                    <tr>
                        <td>自主上下床</td>
                        <td colspan="4">无需协助独立上下床等活动</td>
                        <td colspan="2"><span th:if="${records.selfGoBed==0}">可自主完成</span> <span
                                th:if="${records.selfGoBed==1}"> 不能自主完成 </span></td>
                    </tr>
                    <tr>
                        <td>自主如厕</td>
                        <td colspan="4">去厕所、解开衣裤、擦净、整理衣裤、冲水等活动</td>
                        <td colspan="2"><span th:if="${records.selfToilet==0}">可自主完成</span> <span
                                th:if="${records.selfToilet==1}"> 不能自主完成 </span></td>
                    </tr>
                    <tr>
                        <td>自主行走</td>
                        <td colspan="4">站立、转移、行走、上下楼梯、户外活动等</td>
                        <td colspan="2"><span th:if="${records.selfWalk==0}">可自主完成</span> <span
                                th:if="${records.selfWalk==1}"> 不能自主完成 </span></td>
                    </tr>
                    <tr>
                        <td>自主洗澡</td>
                        <td colspan="4">洗头、梳头、洗脸、刷牙、剃须、洗澡等活动</td>
                        <td colspan="2"><span th:if="${records.selfLave==0}">可自主完成</span> <span
                                th:if="${records.selfLave==1}"> 不能自主完成 </span></td>
                    </tr>
                    <tr>
                        <td colspan="2" rowspan="4">评估指标及结果</td>
                        <td colspan="4">评估指标</td>
                        <td colspan="3">评估结果</td>
                    </tr>
                    <tr>
                        <td colspan="4">6项指标均能自主完成</td>
                        <td colspan="3">具备生活自理能力</td>
                    </tr>
                    <tr>
                        <td colspan="4">1-3项指标不能自主完成</td>
                        <td colspan="3">部分丧失生活自理能力</td>
                    </tr>
                    <tr>
                        <td colspan="4">4项及以上指标不能自主完成</td>
                        <td colspan="3">完全丧失生活自理能力</td>
                    </tr>
                    <tr>
                        <td colspan="2" rowspan="3">院自评或第三方机构意见</td>
                        <td colspan="7">初评意见：</td>
                    </tr>
                    <tr>
                        <td colspan="7"><span>主要负责人：</span><span style=" margin-left: 265px;"> 经办人：</span></td>
                    </tr>
                    <tr>
                        <td colspan="7"><span style="margin-left: 460px;">年&nbsp;&nbsp; &nbsp;&nbsp;月&nbsp;&nbsp; &nbsp;&nbsp;日</span>
                        </td>
                    </tr>
                    <tr class="hulve">
                        <td colspan="2">备注</td>
                        <td colspan="7"><font size="3" color="red">认真按照评估标准进行评估，不得弄虚作假，填写好评估结果并签字,上传待审核</font></td>
                    </tr>
                    </tbody>
                </table>
                <div class="layui-form-item hulve">
                    <div class="layui-input-block">
                         <a th:if="${records.filePath == null}" href="javascript:void(0)" class="layui-btn layui-btn-normal"  id="tjsh">提交审核</a>
                        <a  href="javascript:void(0)"  class="layui-btn layui-btn-normal" id="dy">打印评估表</a>
                        <a href="/gbassessRecords/listLsUI" class="layui-btn layui-btn-normal" >返回</a>
                    </div><br><br>
                </div>
                <img th:if="${records.filePath ne null}" th:src="@{'/storage/images/' + ${records.filePath} +'_841x972'}"  alt="评估表加载失败" id="uppgb"/>
            </div>
        </div>
    </div>
</div>
</html>
